﻿@model List<Model.Student>
@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>Index</title>
    <script>
        function DC()
        {
            location.href = '/Home/DaoChu';
        }
    </script>
</head>
<body>
    <div> 
        <form action="/Home/Sc" method="post" enctype="multipart/form-data">
            <input type="file" id="txtfile" name="file" />
            <input type="submit" value="导入" />
        </form>
        <input type="submit" value="导出" onclick="DC()" />
        <table>
            <tr>
                <td>编号</td>
                <td>姓名</td>
                <td>性别</td>
                <td>年龄</td>
            </tr>
            @foreach (var item in Model)
            {
                <tr>
                    <td>@item.ID</td>
                    <td>@item.Name</td>
                    <td>@item.Sex</td>
                    <td>@item.Age</td>
                </tr>
            }
        </table>
    </div>

</body>
</html>
